import request from '@/utils/request'

// 查询关重件验证规则列表
export function listValidationrules(query) {
  return request({
    url: '/base/validationrules/list',
    method: 'get',
    params: query
  })
}
// 查询所有关重件验证规则列表
export function listAllValidationrules(query) {
  return request({
    url: '/base/validationrules/getList',
    method: 'get',
    params: query
  })
}

// 查询关重件验证规则详细
export function getValidationrules(id) {
  return request({
    url: '/base/validationrules/' + id,
    method: 'get'
  })
}

// 新增关重件验证规则
export function addValidationrules(data) {
  return request({
    url: '/base/validationrules',
    method: 'post',
    data: data
  })
}

// 修改关重件验证规则
export function updateValidationrules(data) {
  return request({
    url: '/base/validationrules',
    method: 'put',
    data: data
  })
}

// 删除关重件验证规则
export function delValidationrules(id) {
  return request({
    url: '/base/validationrules/' + id,
    method: 'delete'
  })
}

// 导出关重件验证规则
export function exportValidationrules(query) {
  return request({
    url: '/base/validationrules/export',
    method: 'get',
    params: query
  })
}